class TimedCache::Value

Public Class Methods

json_create(hash) click to toggle source
# File lib/tins/timed_cache.rb, line 3
def self.json_create(hash)
  new(*hash.values_at('value', 'timestamp'))
end

Public Instance Methods

as_json(*) click to toggle source
Calls superclass method
# File lib/tins/timed_cache.rb, line 7
def as_json(*)
  super | { JSON.create_id => self.class.name }
end